<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<title></title>
		<meta name="description" content="overview & stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link href="static/css/bootstrap.min.css" rel="stylesheet" />
		<link href="static/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="static/css/font-awesome.min.css" />
		<!-- 下拉框 -->
		<link rel="stylesheet" href="static/css/chosen.css" />
		
		<link rel="stylesheet" href="static/css/ace.min.css" />
		<link rel="stylesheet" href="static/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="static/css/ace-skins.min.css" />
		
		<link rel="stylesheet" href="static/css/datepicker.css" /><!-- 日期框 -->
		<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="static/js/jquery.tips.js"></script>
		
<script type="text/javascript">
	
	
	//保存
	function save(){
			if($("#USERNAME").val()==""){
			$("#USERNAME").tips({
				side:3,
	            msg:'请输入用户名',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#USERNAME").focus();
			return false;
		}
		if($("#PASSWORD").val()==""){
			$("#PASSWORD").tips({
				side:3,
	            msg:'请输入登录密码',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#PASSWORD").focus();
			return false;
		}
		if($("#SUPERVISOR").val()==""){
			$("#SUPERVISOR").tips({
				side:3,
	            msg:'请输入姓名',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#SUPERVISOR").focus();
			return false;
		}
		if($("#DEPARTMENTID").val()==""){
			$("#DEPARTMENTID").tips({
				side:3,
	            msg:'请输入所属学院',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#DEPARTMENTID").focus();
			return false;
		}
		
		if($("#EMAIL").val()==""){
			$("#EMAIL").tips({
				side:3,
	            msg:'请输入电子邮箱',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#EMAIL").focus();
			return false;
		}
		if($("#TELPHONE").val()==""){
			$("#TELPHONE").tips({
				side:3,
	            msg:'请输入电话',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#TELPHONE").focus();
			return false;
		}
		if($("#QQ").val()==""){
			$("#QQ").tips({
				side:3,
	            msg:'请输入QQ',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#QQ").focus();
			return false;
		}
		if($("#INTRODUCE").val()==""){
			$("#INTRODUCE").tips({
				side:3,
	            msg:'请输入导师简介',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#INTRODUCE").focus();
			return false;
		}
		if($("#EDUCATION").val()==""){
			$("#EDUCATION").tips({
				side:3,
	            msg:'请输入导师学历',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#EDUCATION").focus();
			return false;
		}
		if($("#TECHNICAL").val()==""){
			$("#TECHNICAL").tips({
				side:3,
	            msg:'请输入导师职称',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#TECHNICAL").focus();
			return false;
		}
		if($("#IS_DEL").val()==""){
			$("#IS_DEL").tips({
				side:3,
	            msg:'请输入是否删除',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#IS_DEL").focus();
			return false;
		}
		if($("#REMARK").val()==""){
			$("#REMARK").tips({
				side:3,
	            msg:'请输入备注',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#REMARK").focus();
			return false;
		}
		$("#Form").submit();
		$("#zhongxin").hide();
		$("#zhongxin2").show();
	}
	
</script>
	</head>
<body>
	<form action="supervisor/${msg }.do" name="Form" id="Form" method="post">
		<input type="hidden" name="SUPERVISOR_ID" id="SUPERVISOR_ID" value="${pd.SUPERVISOR_ID}"/>
		<div id="zhongxin">
		<table id="table_report" class="table table-striped table-bordered table-hover">
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">用户名:</td>
				<td><input type="text" name="USERNAME" id="USERNAME" value="${pd.USERNAME}" maxlength="32" placeholder="这里输入用户名" title="用户名"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">登录密码:</td>
				<td><input type="text" name="PASSWORD" id="PASSWORD" value="${pd.PASSWORD}" maxlength="32" placeholder="这里输入登录密码" title="登录密码"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">姓名:</td>
				<td><input type="text" name="SUPERVISOR" id="SUPERVISOR" value="${pd.SUPERVISOR}" maxlength="32" placeholder="这里输入姓名" title="姓名"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">所属学院:</td>
					<td style="height:35px;padding-top: 13px;">
					<select class="chzn-select" style="width:220px" name="DEPARTMENT_XI" id="DEPARTMENT_XI" value="${pd.DEPARTMENT_XI}" data-placeholder="请选择院">
					
							 <option value="${pd.DEPARTMENT_XI}"></option>
				<c:forEach items="${roleList}" var="role">
					<option value="${role.BIANMA }" <c:if test="${role.BIANMA == pd.DEPARTMENT_XI}">selected</c:if>>${role.NAME}</option>
				</c:forEach>	
				</select>
				</td>
			</tr>
			
			
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">本科、专科:</td>
				<td><input type="text" name="XIANXUAN" id="XIANXUAN" value="${pd.XIANXUAN}" maxlength="32" placeholder="这里输入电子邮件" title="电子邮件"/></td>
			</tr>
			
			
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">限选人数:</td>
				<td><input type="text" name="S_MAXNUMBER" id="S_MAXNUMBER" value="${pd.S_MAXNUMBER}" maxlength="32" placeholder="这里输入电子邮件" title="电子邮件"/></td>
			</tr>
			
			
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">当前人数:</td>
				<td><input type="text" name="S_CURRENTNUMBER" id="S_CURRENTNUMBER" value="${pd.S_CURRENTNUMBER}" maxlength="32" placeholder="这里输入电子邮件" title="电子邮件"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">电子邮箱:</td>
				<td><input type="text" name="EMAIL" id="EMAIL" value="${pd.EMAIL}" maxlength="32" placeholder="这里输入电子邮件" title="电子邮件"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">电话:</td>
				<td><input type="text" name="TELPHONE" id="TELPHONE" value="${pd.TELPHONE}" maxlength="32" placeholder="这里输入电话" title="电话"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">QQ:</td>
				<td><input type="text" name="QQ" id="QQ" value="${pd.QQ}" maxlength="32" placeholder="这里输入QQ" title="QQ"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">导师简介:</td>
				<td><input type="text" name="INTRODUCE" id="INTRODUCE" value="${pd.INTRODUCE}" maxlength="32" placeholder="这里输入导师简介" title="导师简介"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">导师学历:</td>
				<td><input type="text" name="EDUCATION" id="EDUCATION" value="${pd.EDUCATION}" maxlength="32" placeholder="这里输入导师学历" title="导师学历"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">导师职称:</td>
				<td><input type="text" name="TECHNICAL" id="TECHNICAL" value="${pd.TECHNICAL}" maxlength="32" placeholder="这里输入导师职称" title="导师职称"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">是否删除:</td>
				<td><input type="text" name="IS_DEL" id="IS_DEL" value="${pd.IS_DEL}" maxlength="32" placeholder="这里输入是否删除" title="是否删除"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">备注:</td>
				<td><input type="text" name="REMARK" id="REMARK" value="${pd.REMARK}" maxlength="32" placeholder="这里输入备注" title="备注"/></td>
			</tr>
			<tr>
				<td style="text-align: center;" colspan="10">
					<a class="btn btn-mini btn-primary" onclick="save();">保存</a>
					<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
				</td>
			</tr>
		</table>
		</div>
		
		<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">提交中...</h4></div>
		
	</form>
	
	
		<!-- 引入 -->
		<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script src="static/js/bootstrap.min.js"></script>
		<script src="static/js/ace-elements.min.js"></script>
		<script src="static/js/ace.min.js"></script>
		<script type="text/javascript" src="static/js/chosen.jquery.min.js"></script><!-- 下拉框 -->
		<script type="text/javascript" src="static/js/bootstrap-datepicker.min.js"></script><!-- 日期框 -->
		<script type="text/javascript">
		$(top.hangge());
		$(function() {
			
			//单选框
			$(".chzn-select").chosen(); 
			$(".chzn-select-deselect").chosen({allow_single_deselect:true}); 
			
			//日期框
			$('.date-picker').datepicker();
			
		});
		
		</script>
</body>
</html>